package com.zatech.cgnci.project.vo;

import com.zatech.cgnci.project.dto.ContractBillDetailsAddDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class ContractInvoiceDetailsVO {

    @ApiModelProperty("自增编号")
    private Long id;

    @ApiModelProperty("合约编号")
    @NotBlank(message = "合约编号不能为空")
    private String contractNumber;

    @ApiModelProperty("账单编号")
    private String invoiceNumber;
    @ApiModelProperty("合约名称")
    private String contractName;

    @ApiModelProperty("合约类型")
    @NotBlank(message = "合约类型不能为空")
    private String contractType;

    @ApiModelProperty("合约期限")
    @NotBlank(message = "合约期限不能为空")
    private String contractDeadline;

    @ApiModelProperty("再保分出人")
    private String cedingCompany;

    @ApiModelProperty("再保接收人")
    private String receiver;

    @ApiModelProperty("项目名称")
    private String projectName;

    @ApiModelProperty("账单币种")
    private String currency;

    @ApiModelProperty("汇率")
    private BigDecimal fxRate;

    @ApiModelProperty("账单接收人")
    private String billRecipient;

    @ApiModelProperty("收付方向")
    private String direction;

    @ApiModelProperty("总金额")
    private BigDecimal collectAmount;

    @ApiModelProperty("账单期")
    private String billingCycle;
    @ApiModelProperty("入账日期")
    private Date postingDate;
    @ApiModelProperty("实收付日期")
    private Date actualPaymentDate;
    @ApiModelProperty("应收付日期")
    private Date dueDate;
    @ApiModelProperty("账单状态")
    private String status;
    @ApiModelProperty("创建人")
    private String createUser;

    @ApiModelProperty("账单明细")
    List<ContractBillDetailsAddDTO> detailsAddDTOS;
}
